package run.siyuan.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import run.siyuan.common.constant.rabbitmq.Constants;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("item")
@Document(indexName = Constants.EsIndex.ITEM, shards = 3)
public class Item implements Serializable {
  private static final long serialVersionUID = -1L;

  @Id
  @TableId
  private long id;
  private long productId;
  private String productName;
  private String productNameSearch;
  private String productImg;
  private BigDecimal price;
  private String currency;
  private String sellerName;
  private BigDecimal currentPrice;
  private BigDecimal commissionFee;
  private String brandName;
  private long categoryId;
  private String categoryName;
  private long categoryTopId;
  private String categoryTopName;
  private long youpikCategoryId;
  private String youpikCategoryName;
  private String productUrl;
  private long skuId;
  private String lazadaSku;
  private BigDecimal productCommissionRate;
  private long sales;
  private long freeShipping;
  private long sort;
  private Integer bestState;
  private Integer brandState;
  private Integer productState;
  private Integer source;
  private long createTime;
  private long updateTime;
  private long deleted;

}
